<template>
  <el-container class="main_con">
    <div class="list_con nomt nopt">
      <el-tabs v-model="activeName" @tab-click="tabsClick">
        <el-tab-pane v-if="jur_addons[12]" label="商户提现" name="first">
          <merchantWithdrawal></merchantWithdrawal>
        </el-tab-pane>
        <el-tab-pane label="分销商提现" name="second">
          <agentWithdrawal></agentWithdrawal>
        </el-tab-pane>
        <el-tab-pane label="用户提现" name="trid">
          <userWithdraw></userWithdraw>
        </el-tab-pane>
        
      </el-tabs>
    </div>
  </el-container>
</template>

<script>
import merchantWithdrawal from "./components/merchantWithdrawal";
import agentWithdrawal from "./components/agentWithdrawal";
import userWithdraw from "./components/userWithdraw";

export default {
  data() {
    return {
      activeName: "first",
      isLoading: false,
      jur_addons: {}
    };
  },
  components: {
    merchantWithdrawal,
    agentWithdrawal,
    userWithdraw
  },
  mounted() {
    this.$jur_addons([12]).then(a => {
      this.jur_addons = a;
      if (!a[12]) {
        this.activeName = "second";
      }
    });
    //this.getlist()
  },

  methods: {
    //面板点击
    tabsClick(tab, event) {}
  }
};
</script>

<style lang="scss">
.el-tabs__header {
  margin-bottom: 0 !important;
}
</style>
